<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>小样足球大狂欢</title>
  <link rel="stylesheet" type="text/css" href="${ctx}/resource/css/reset.css?20160608">
  <link rel="stylesheet" type="text/css" href="${ctx}/resource/css/style.css?20160608">
  <link rel="stylesheet" type="text/css" href="${ctx}/resource/css/football.css?20160608">
  <link rel="stylesheet" type="text/css" href="${ctx}/resource/css/wx.css?20160620">
  <script type="text/javascript" src="${ctx}/resource/js/jquery-2.1.4.min.js"></script>
  <script type="text/javascript" src="${ctx}/resource/js/app.js"></script>
  <script type="text/javascript" src="${ctx}/resource/js/jquery.cookie.js"></script>
  <script type="text/javascript" src="${ctx}/resource/js/cnzz.js"></script>
  <script type="text/javascript" src="${ctx}/resource/js/fastclick.js"></script>
  <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  <script>
    $(function(){
	//分享处理
	function shareAdd(share_type){
	 $.ajax({type : "POST",url : "${ctx}/home/shareAdd",async : false,data:{share_type:share_type},success:function(json){
                         if(json.code = 0 ){
                         dialog(".qd-success");
                         }
	                   }
	                   });
	}
	$.ajax({
		type: "GET",
		url: "${ctx}/share/wxShare",
		data:"reqUrl="+encodeURIComponent(window.location.origin+window.location.pathname+window.location.search),
		success: function(json){
			var conf={
			debug: false,
			appId: json.wxConfig.appId,
			timestamp: json.wxConfig.timestamp,
			nonceStr: json.wxConfig.nonceStr,
			signature: json.wxConfig.signature,
			jsApiList: [
				'onMenuShareTimeline',
				'onMenuShareAppMessage'
			]
			};
			wx.config(conf);
			wx.ready(function () {
				wx.checkJsApi({
					  jsApiList: [
						'onMenuShareTimeline',
						'onMenuShareAppMessage'
					  ],
					  success: function (res) {
					  }
				});
				var shareCircleData = {
					title: json.share.circle_desc,
					desc: json.share.circle_desc,
					link: json.share.link,
					imgUrl: json.share.imgUrl,
					success: function () { 
					shareAdd("02");
                     }
				 };
				 var shareData = {
					title: json.share.title,
					desc: json.share.desc,
					link: json.share.link,
					imgUrl: json.share.imgUrl,
					success: function () { 
					shareAdd("01");
                     }
				 };
				 wx.onMenuShareAppMessage(shareData);
				 wx.onMenuShareTimeline(shareCircleData);
				
			});
		}
	});
})
</script>
</head>
<div style="display:none;">
<script src="https://s95.cnzz.com/z_stat.php?id=1259604551&web_id=1259604551" language="JavaScript"></script>
</div>